home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 2.9 KB | 92 lines | [TEXT/MPS ] |
- ;
- ; File: PCICommonPlugin.a
- ;
- ; Contains: This file contains all interface related structures and prototypes common for pci expert to
- ;
- ; Version: Technology: Copland
- ; Release: Universal Interfaces 3.0d3 on Copland DR1
- ;
- ; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
- IF &TYPE('__PCICOMMONPLUGIN__') = 'UNDEFINED' THEN
- __PCICOMMONPLUGIN__ SET 1
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- IF &TYPE('__NAMEREGISTRY__') = 'UNDEFINED' THEN
- include 'NameRegistry.a'
- ENDIF
- IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
- include 'Errors.a'
- ENDIF
- IF &TYPE('__DRIVERFAMILYMATCHING__') = 'UNDEFINED' THEN
- include 'DriverFamilyMatching.a'
- ENDIF
- IF &TYPE('__INTERRUPTS__') = 'UNDEFINED' THEN
- include 'Interrupts.a'
- ENDIF
- IF FOR_SYSTEM8_PREEMPTIVE THEN
- ; typedefs for common plugins interface
- PCIPluginHeader RECORD 0
- version ds.l 1 ; offset: $0 (0)
- reserved1 ds.l 1 ; offset: $4 (4)
- reserved2 ds.l 1 ; offset: $8 (8)
- reserved3 ds.l 1 ; offset: $C (12)
- thisPluginLoadID ds.l 1 ; offset: $10 (16)
- sizeof EQU * ; size: $14 (20)
- ENDR
- ; typedef struct PCIPluginHeader * PCIPluginHeaderPtr
-
- ; pci bridge descriptor definition
- PCIBridgeDescriptor RECORD 0
- InterfaceHeader ds PCIPluginHeader ; offset: $0 (0)
- TheDomainDriverDescription ds.l 1 ; offset: $14 (20)
- DefaultBridgeEnablerFunc ds.l 1 ; offset: $18 (24)
- DefaultBridgeDisablerFunc ds.l 1 ; offset: $1C (28)
- DefaultBridgeDispatcherFunc ds.l 1 ; offset: $20 (32)
- FinalizeFunc ds.l 1 ; offset: $24 (36)
- sizeof EQU * ; size: $28 (40)
- ENDR
- ; typedef struct PCIBridgeDescriptor * PCIBridgeDescriptorPtr
-
- ;
- ; pci bridge variables for bridges
- ; stolen from marconi InterruptsAssign.c written by Matt Nelson
- ;
- DefaultBridgeVariables RECORD 0
- lastEntryIntCount ds.l 1 ; offset: $0 (0)
- lastServicedMember ds.l 1 ; offset: $4 (4)
- totalMembersScanned ds.l 1 ; offset: $8 (8)
- totalMemberCount ds.l 1 ; offset: $C (12)
- memberEnableFlags ds.l 1 ; offset: $10 (16)
- sizeof EQU * ; size: $14 (20)
- ENDR
- ; typedef struct DefaultBridgeVariables * DefaultBridgeVariablesPtr
-
- ; pci header interface version definition
-
- kPCIPluginVersion1000 EQU $01000000 ; initial pci family interface release
- ; pci error codes
-
- kPCIerrorNoError EQU 0
- kPCIerrorNoDeviceFound EQU -2538
- kPCIerrorNoDomainFound EQU -192
- kPCIerrorBadPointerFound EQU -346
- kPCIerrorBadValueFound EQU -2422
- kPCIerrorBadRegPropertyFound EQU -2539
- kPCIerrorNoNotificationProduced EQU -192
- kPCIerrorMemoryAllocationFailed EQU -2537
- kPCIerrorUnsupportedPluginVersion EQU -2405
- kPCIerrorFatal EQU -2499
- ENDIF
- ENDIF ; __PCICOMMONPLUGIN__
-
-